/*
 * @Author: yuki
 * @Date: 2025-10-25 23:28:26
 * @LastEditTime: 2025-11-05 20:28:53
 * @Description: 自定义异常
 */
import { HttpException, HttpStatus } from '@nestjs/common';

// 数据不匹配异常
export class DataMismatchException extends HttpException {
  constructor(message = '数据不匹配') {
    // 调用父类构造函数：参数1为响应体，参数2为状态码
    super(
      {
        message
      },
      HttpStatus.OK
    );
  }
}
